{% extends "enterprise/base.html" %}

{% block css %}
{% endblock %}

{% block content %}
            <script type="text/javascript">
                var primary_menu = "menu_1";
                var sub_menu = "menu_1_2";
            </script>
            <div class="col-md-12">
            	<form action='' method="POST" class='formSubmit'>
	                <div class="panel panel-primary">
	                    <div class="panel-heading">
	                        <div class="panel-title"><h3>一、产品信息表（每种化学产品填写一张表）</h3></div>
	                        <div class="panel-options">
	                            <a href="#" data-rel="collapse"><i class="entypo-down-open"></i></a>
	                        </div>
	                    </div>
	                    <div class="panel-body with-table">
		                    <table class="input_in table-detail">
			                    <tr>
			                        <th width="230">产品名称</th>
			                        <td><input name='name'  type="text" placeholder="请输入"></td>
                                    <th width="200">产品编号</th>
                                    <td><input name='sid'  type="text" placeholder="请输入"></td>
			                        
			                    </tr>
                                <tr>
                                    <th>产品类别名称</th>
                                    <td><input name='category'  type="text" placeholder="请输入"></td>
                                    <th>产品分类代码</th>
                                    <td><input name='category_code'  type="text" placeholder="请输入"></td>
                                </tr>
                                <tr>
                                    <th>其他名称</th>
                                    <td><input name='other_name'  type="text" placeholder="请输入"></td>
                                    <th>化学文摘号（识别码）</th>
                                    <td><input name='cas' type="text" placeholder="请输入"></td>
                                </tr>
                                <tr>
                                    
                                    <th>产品物理状态</th>
                                    <td>
                                        <select name="physical_form">
                                            <option value="固态">固态</option>
                                            <option value="半固态">半固态</option>
                                            <option value="其他">其他</option>
                                        </select>
                                    </td>
                                    <th>危害特性</th>
                                    <td>
                                        <select name='hazard_pro' value='{{ m.hazard_pro }}'>
                                            <option value='易燃性'>易燃性</option>
                                            <option value='反应性'>反应性</option>
                                            <option value='腐蚀性'>腐蚀性</option>
                                            <option value='刺激性'>刺激性</option>
                                            <option value='急毒性'>急毒性</option>
                                            <option value='浸出毒性'>浸出毒性</option>
                                        </select>
                                    </td>
                                </tr>
			                    <tr>
			                        <th>历史最大产量（t/a）</th>
			                        <td><input datatype="n" name='his_max_amount'  type="text" placeholder="请输入"></td>
			                        <th>产量（t/a）</th>
			                        <td><input datatype="n" name='year_amount' type="text" placeholder="请输入"></td>
			                    </tr>
			                    <tr>
			                        <th>国内销售量（t/a）</th>
			                        <td><input datatype="n" name='domestic_sales_amount'  type="text" placeholder="请输入"></td>
			                        <th>出口量（t/a）</th>
			                        <td><input datatype="n" name='exports_amount' value='{{ p.exports_amount }}' type="text" placeholder="请输入"></td>
			                    </tr>
			                    <tr>
			                        <th>调查年底（12月31日）储存量（吨）</th>
			                        <td><input name='storage_amount' type="text" placeholder="请输入"></td>
                                    <th>实际产量（t/a）</th>
                                    <td><input datatype="n" name='actual_amount' value='{{ c.actual_amount }}' type="text" placeholder="请输入"></td>
			                    </tr>
                                <tr>
                                    <th>是否属于危险化学品</th>
                                    <td>
                                        <select name='is_dangerous'>
                                            <option value='是'>是</option>
                                            <option value='否'>否</option>
                                        </select>
                                    </td>
                                    <th>预期用途代码（可多填）</th>
                                    <td><input name='use_code'  type="text" placeholder="请输入"></td>
                                </tr>
                                <tr>
                                    <th>是否为重点环境管理危险品</th>
                                    <td>
                                        <select name='is_emphasis'>
                                            <option value='是'>是</option>
                                            <option value='否'>否</option>
                                        </select>
                                    </td>
                                    <th>是否属于安监重点监管危化品</th>
                                    <td>
                                        <select name='is_re_danger'>
                                            <option value='是'>是</option>
                                            <option value='否'>否</option>
                                        </select>
                                    </td>
                                </tr>
                                <tr>
                                    <th>贮存方式</th>
                                    <td colspan="3"><input datatype="*" name='storage_mode' value='{{ c.storage_mode }}' type="text" placeholder="请输入"></td>
                                </tr>
                                <tr>
                                    <th rowspan=2>系统内最大存量（t）</th>
                                    <td>生产区</td>
                                    <td colspan="2"><input datatype="n" name='max_input_amount' value='{{ c.max_input_amount }}' type="text" placeholder="请输入"></td>
                                </tr>
                                <tr>
                                    <td>贮存区</td>
                                    <td colspan="2"><input datatype="n" name='max_sto_amount' value='{{ c.max_sto_amount }}' type="text" value='' placeholder="请输入"></td>
                                </tr>
                                <tr>
                                    <th>输出去向</th>
                                    <td>
                                        <input datatype="*" name='out_mode' value='{{ c.out_mode }}' type="text" placeholder="请输入"></td>
                                        <th>输出方式</th>
                                    <td>
                                        <input datatype="*" name='out_where' value='{{ c.out_mode }}' type="text" placeholder="请输入"></td>
                                </tr>
		                    </table>
	                    </div>
	                </div>
	                <div class="panel panel-primary">
	                    <div class="panel-heading">
	                        <div class="panel-title"><h3>二、产品中化学物质信息</h3></div>
	                        <div class="panel-options">
	                            <a href="#" data-rel="collapse"><i class="entypo-down-open"></i></a>
	                        </div>
	                    </div>
	                    <div class="panel-body with-table">
                            <table class="input_in table-detail mb5">
                                <tr>
                                    <th rowspan=4>成分1</th>
                                    <th width="280">化学名称</th>
                                    <td><input name='e_name' value='' type="text" placeholder="请输入"></td>
                                    <th width="280">分子式</th>
                                    <td><input name='e_molecular_formula' value='' type="text" placeholder="请输入"></td>
                                    <td rowspan="4" width="60"><input type="button" value="添加" class="btn-success" onclick="addElement(this)"></td>
                                </tr>
                                <tr>
                                    <th>化学文摘号（识别码）/临时编码</th>
                                    <td><input name='e_code' value='' type="text" placeholder="请输入"></td>
                                    <th>结构式(上传图片)</th>
                                    <td><input name='e_struct' value='' type="text" placeholder="请输入"></td>
                                </tr>
                                <tr>
                                    <th>其他名称</th>
                                    <td><input name='e_other_name' value='' type="text" placeholder="请输入"></td>
                                    <th>是否属于危险化学品</th>
                                    <td>
                                    	<select name='e_is_dangerous'>
                                            <option value='是'>是</option>
                                            <option value='否'>否</option>
                                        </select>
                                    </td>
                                </tr>
                                <tr>
                                    <th>含量（%）</th>
                                    <td><input name='e_amount' value='' type="text" placeholder="请输入"></td>
                                    <th>成分折纯量（t/a）</th>
                                    <td><input name='e_shechun' value='' type="text" placeholder="请输入"></td>
                                </tr>
                            </table>	                            
	                    </div>
	                </div>
                    <div class="buttons">

                        <!-- <input onclick="submitSave()" type="submit" class="btn btn-orange btn-lg" value="暂存"> -->
                        <input class="btn btn-orange btn-lg" onclick="submitHold();" type='submit' value="暂存">
                        <input class="btn btn-info btn-lg" type="submit" value="确认" />
                    </div>
                </form>
            </div>
{% endblock %}

{% block js %}
    <script type='text/javascript'>
        function submitHold(){
            demo.submitForm(true,"?key=hold");
            return false;
        }
    </script>
{% endblock %}